<?php
/**
 * Created by PhpStorm.
 * User: zyark
 * Date: 2018/4/5
 * Time: 19:29
 */

namespace app\index\logic;

use app\common\utils\WeChatUtils;
use think\Config;
use think\Exception;
use think\Log;

class HousePropertyLogic
{

    static private $instance;

    static public function getInstance(){
        if (!self::$instance instanceof self) {
            self::$instance = new self();
        }
        return self::$instance;
    }

    /**
     * 获取房产列表
     * @param $userId 用户ID
     */
    public function getHousePropertyListByUserId($userId){
        return model('HouseProperty')->where(array('user_id'=>$userId))->select();
    }
}